<?php
/**
 * 短信
 */

namespace app\common\server;

use fengniao\PhoneMsg;
use think\Config;
use think\Session;

class Sns
{
    protected $user;
    protected $password;
    protected $platform;

    protected $server;

    private $_codeSessionName = '_SNS_code';

    private $_template = [
        //短信模板
    ];

    public function __construct()
    {
        $sns = Config::get('SNS');

        $this->server = new PhoneMsg($sns['user'], $sns['password'], $sns['platform']);
    }
}